<?php
/**
 * @param carnet de alumno
 * 
 * @author windSoft
 * @email 
 **/
 
class Model_login extends CI_Model
{
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }

	function verifica($carnet)
	{
			$this -> db -> select('carnet, nombre, apellidos');
			$this -> db -> from('alumno');

			$this -> db -> where("carnet = '" . $carnet ."'");
			$this -> db -> limit(1);

			$query = $this -> db -> get();

			if($query -> num_rows() == 1)
			{
					return $query -> result();
			}
			else
			{
					return false;
			}
	}
}
?>